//
//  AYDemoViewController.swift
//  MyWeibo
//
//  Created by 昌俊 杨 on 29/9/2016.
//  Copyright © 2016 April. All rights reserved.
//

import UIKit

class AYDemoViewController: AYBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        navigationItem.title = "第\(navigationController?.childViewControllers.count ?? 0)个"
        
        naviItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(showNext))
        
        
    }
    func showNext()
    {
        let vc = AYDemoViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
}
